load "header.plt"

#set size 0.8, 0.9

xmin=0; xmax=128
ymin=0; ymax=10240
set xrange [xmin:xmax]
set autoscale y


k=2
xleg=1.01
yleg=1.01


# Label n sub 0
n0 =  40
set arrow 1 from n0,graph -0.02 to n0,graph 1 nohead lt 2
#set xtics ("$n_0$" n0)
set label 1 "$n_0$" at n0-1, graph -0.05

# Label curva
set label 3 "$g(n)\\in \\Omega(f)$"   at graph xleg, first 1.5*xmax**2

# Label cota inferior
set label 4 "$cf(n)$"    at graph xleg, first xmax**2

set output "figs/cotainf.eps"
plot [n=xmin:xmax] \
    n**2 title "n^2" lt 1, \
    "-" smooth csplines title "g(n) e W(f(n))" with lines lt 4
  0     0
 10   400
 15    10
 20   900
 22  1800
 26  4000
 31  1922
 32  1536
 40  1600
 44  3300
 48  3456
 64  6144
128 24576
EOF

load "footer.plt"
# EOF
